home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr25
/
gnuplsrc.zip
/
GNUSHELL.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-03-21
|
3KB
|
86 lines
/* gnushell header file */
/*
** static char RCSid[]="$Id: gnushell.h,v 1.2 1992/07/26 12:37:55 fearick Exp fearick $" ;
*/
/* Update Log
**
* $Log: gnushell.h,v $
* Revision 1.2 1992/07/26 12:37:55 fearick
* Initial 32-bit version
*
* Revision 1.1 1992/07/25 15:45:05 fearick
* Initial revision
*
*
*/
/* include resource defines */
#ifndef DISPDEFS_H
#include "dispdefs.h"
#endif
/*==== own window messages =================================================*/
#define WM_GNUPLOT (WM_USER+20)
#define WM_GNU_NOHELP (WM_USER+21)
#define WM_GNU_NOEXE (WM_USER+22)
#define WM_USER_SET_DATA (WM_USER+90)
#define WM_USER_GET_DATA (WM_USER+91)
#define WM_USER_CHGFONT (WM_USER+10)
/*==== various names ========================================================*/
#define GNUPIPE "\\pipe\\gnuplot" /* named pipe to gnuplot */
#define ENVGNUHELP "GNUHELP" /* gnuplot help envionment name */
#define ENVGNUPLOT "GNUPLOT" /* general gnuplot environment */
#define GNUEXEFILE "gnuplot.exe" /* exe file name */
#define GNUHELPFILE "gnuplot.gih" /* help file name */
#define GNUTERMINIT "GNUTERM=pm" /* terminal setup string */
#define INITIAL_FONT "12.Helvetica" /* initial font for plots */
/*==== global data ==========================================================*/
HAB hab ; // application anchor block handle
HWND hApp ; // application window handle
HWND hwndFrame ; // frame window handle
/*==== stuff for querying printer capability =================================*/
typedef struct { //query data for printer setup
float xsize ;
float ysize ;
float xfrac ;
float yfrac ;
short caps ;
char name[32] ;
} QPRINT, *PQPRINT ;
#define QP_CAPS_NORMAL 0
#define QP_CAPS_FILE 1 /* can print to file */
/*==== function declarations =================================================*/
short ScalePS( HPS, PRECTL, USHORT ) ;
void PlotThings( HPS, long ) ;
void SetupPrinter( HWND) ;
HDC OpenPrinterDC( HAB, LONG, char* ) ;
void SetPrinterMode( HWND ) ;
short QueryPrinterCaps( HWND ) ;
MPARAM PrintCmdProc( HWND, ULONG, MPARAM, MPARAM ) ;
MRESULT EXPENTRY PrintDlgProc( HWND, ULONG, MPARAM, MPARAM ) ;
MRESULT EXPENTRY QFontDlgProc( HWND ,ULONG, MPARAM, MPARAM ) ;
MRESULT EXPENTRY QPrintDlgProc (HWND, ULONG, MPARAM, MPARAM) ;
MRESULT EXPENTRY DisplayClientWndProc(HWND, ULONG, MPARAM, MPARAM);
MRESULT EXPENTRY About(HWND, ULONG, MPARAM, MPARAM);
/* own window functions... */
void ChangeCheck( HWND, SHORT, SHORT ) ;
void WinSetDlgItemFloat( HWND, USHORT, float ) ;
void WinSetDlgItemFloatF( HWND, USHORT, int, float ) ;
void WinQueryDlgItemFloat( HWND, USHORT, float* ) ;
void WinSetDlgItemLong( HWND, USHORT, ULONG, BOOL ) ;